/*
* Copyright 2011 Pavel Kozhin 
*
* Licensed under the Apache License, Version 2.0 (the "License"); 
* you may not use this file except in compliance with the License. 
* You may obtain a copy of the License at 
* 
* http://www.apache.org/licenses/LICENSE-2.0
* 
* Unless required by applicable law or agreed to in writing, software 
* distributed  under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
* See the License for the specific language governing permissions and 
* limitations under the License.
*
* Author: Pavel Kozhin.
*/
package org.etherframework.core.module
{
	import flash.system.ApplicationDomain;
	
	import org.etherframework.IEther;
	import org.etherframework.common.command.ICommands;
	import org.etherframework.common.mediation.IMediations;
	import org.etherframework.common.wire.IWiring;
	import org.etherframework.core.EtherConfig;
	import org.etherframework.core.bridge.IBridge;
	import org.etherframework.dependency.IDependencies;
	import org.etherframework.mediator.IMediators;
	
	[ExcludeClass]
	public final class ModuleConfig
	{
		private var _bridge:IBridge;
		private var _ether:IEther;
		private var _dependencies:IDependencies;
		private var _mediators:IMediators;
		private var _wiring:IWiring;
		private var _commands:ICommands;
		private var _mediations:IMediations;
		
		public function ModuleConfig(bridge:IBridge, ether:IEther, dependencies:IDependencies, 
									 mediators:IMediators, wiring:IWiring, 
									 commands:ICommands, mediations:IMediations)
		{
			_bridge = bridge;
			_ether = ether;
			_dependencies = dependencies;
			_mediators = mediators;
			_wiring = wiring;
			_commands = commands;
			_mediations = mediations;
		}
		
		public function get ether():IEther { return _ether; }
		public function get config():EtherConfig { return _bridge.config; }
		public function get applicationDomain():ApplicationDomain { return _bridge.applicationDomain; }

		public function get domain():String { return _bridge.domain; }
		public function set domain(value:String):void { _bridge.domain = value; }

		public function get access():String { return _bridge.access; }
		public function set access(value:String):void { _bridge.access = value; }

		public function get mediations():IMediations { return _mediations; }
		public function get commands():ICommands { return _commands; }
		public function get wiring():IWiring { return _wiring; }
		public function get mediators():IMediators { return _mediators; }
		public function get dependencies():IDependencies { return _dependencies; }
	}
}